<div class="box box-solid">
    <div class="box-body table-responsive no-padding">
        <form role="form" action="#" method="post">
            <input type="hidden" name="user[sid]" value="<?php echo $user['sid']; ?>" />
            <div class="box-body">
                    <div class="form-group">
                        <label>姓名</label>
                        <input type="text" name='user[name]' class="form-control" maxlength="20" value="<?php echo $user['name']; ?>">
                        <p class="help-blockk"></p>
                    </div>

                    <div class="form-group">
                        <label>性别</label>
                    <div class="controls">
                        <select  name='user[gender]'  class="form-control  name">
                            <option <?php if(!empty($user['gender'])&&$user['gender']==1) echo 'selected' ?> value="1">男</option>
                            <option <?php if(!empty($user['gender'])&&$user['gender']==2) echo 'selected' ?> value="2">女</option>
                            <option <?php if($user['gender']!=1&&$user['gender']!=2) echo 'selected' ?> value="3">未知</option>
                        </select>
                    </div>
                    </div>

                    <div class="form-group">
                        <label>昵称</label>
                        <input type="text" name='user[nickname]' class="form-control" maxlength="20" value="<?php echo $user['nickname']; ?>">
                        <p class="help-blockk"></p>
                    </div>

                    <div class="form-group">
                        <label>开户行</label>
                        <input type="text" name='user[open_bank]' class="form-control" maxlength="20" value="<?php echo $user['open_bank']; ?>">
                        <p class="help-blockk"></p>
                    </div>

                    <div class="form-group">
                        <label>银行卡</label>
                        <input type="text" name='user[bank_card]' class="form-control" maxlength="20" value="<?php echo $user['bank_card']; ?>">
                        <p class="help-blockk"></p>
                    </div>

  <!--                   <div class="form-group">
                        <label>身份证号</label>
                        <input type="text" name='user[idcard]' class="form-control" maxlength="20" value="<?php echo $user['idcard']; ?>">
                        <p class="help-blockk"></p>
                    </div> -->
                        <?php $p = json_decode($user['idcard_photo'],TRUE);?>
                        <div class="form-group">
                            <label>身份证件</label>
                             <?php $this->widget('GalleryWidget',array('inputName'=>'user[idcard_photo]','gallery'=>$p)); ?>
                              
                            <p class="help-blockk"></p>
                        </div> 

   <!--                  <div class="form-group">
                        <label>学生证号</label>
                        <input type="text" name='user[student_no]' class="form-control" maxlength="20" value="<?php echo $user['student_no']; ?>">
                        <p class="help-blockk"></p>
                    </div> -->



                    <div class="form-group">
                    <label class="control-label" for="form-field-1">状态:</label>
                    <div class="controls">
                        <select  name='user[status]'  class="form-control  name">
                            <option <?php if(!empty($user['status'])&&$user['status']==1) echo 'selected' ?> value="1">正常</option>
                            <option <?php if(!empty($user['status'])&&$user['status']==2) echo 'selected' ?> value="2">禁用</option>
                        </select>
                    </div>
                </div>

               

                    <div class="box-footer">
                     <a href="<?php echo $this->createUrl('user/list'); ?>">返回用户列表</a>

                    <?php if($user['apply']==1) {?>
                    <a  onclick="return confirm('确定要驳回吗？');" href="<?php echo $this->createUrl('user/reapply/sid/'.$user['sid']); ?>">驳回申请</a>
                    <?php }?>

                 <?php if($user['authentication'] != 3) { ?>

                         <?php if(!empty($user['idcard_photo'])) {?>
                            <a class="btn btn-primary" onclick="return confirm('确认学生身份已证？');" href="<?php echo $this->createUrl('user/authentication/type/2/role/3/sid/'.$user['sid']); ?>">学生身份认证</a>
                            <?php }?>
                        <?php }?>
                    </div>
            </div>
        </form>
       
    </div>
</div>
